<?php

/* This is a tpdf template for invoicing. This is use to print on a invoice paper.
 * No line and header is used, only raw data.
 *
 *
 */


$model['cname'] = "PT. Camar Mas Utama";
$model['address']="This is the address \\n Medan 20153";
$model['pic']="Mr. Ace";
$date ="20/08/2009";
$model['origin']="USA";
$model['courier'] = "Fedex";
$model['jobno'] = "II677/09";
$model['awb'] = "627 555999888";
$model['qty'] = "12ctn";
$model['wt'] = "12kg";
$model['customer'] = "Testing customer";
$model['consignee'] = "Testing Consignee";
$model['ref'] = "CMU JA1201";
$model['amt'] = "$ 25.25";
$model['amtword'] = "Fourty-five dollars";
?>

<table>
    <tr>
        <td colspan="2"><?php  echo $model['cname'];?></td>
    </tr>
    <tr>
        <td colspan="2"><?php  echo $model['address'];?></td>
    </tr>
    <tr>
        <td colspan="2">Attn : <?php  echo $model['pic'];?></td>
    </tr>
    <tr>
        <td colspan="2" align="right"><?php  echo $date;?></td>
    </tr>
    <tr>
        <td colspan="2" align="right">Terms : 30 days</td>
    </tr>
    <tr>
        <td width="300px"><?php echo $model['courier'];?></td>
        <td aligh="right"><b><?php echo $model['jobno'];?></b></td>
    </tr>
    <tr>
        <td width="300px"><?php echo $model['origin'];?> / Singapore</td>
        <td aligh="right"><b><?php echo $model['awb'];?></b></td>
    </tr>
    <tr>
        <td width="300px"><?php echo $model['qty'];?> stc: Spare Parts</td>
        <td aligh="right"><b><?php echo $model['wt'];?></b></td>
    </tr>
    <tr>
        <td colspan="2"><small>Credit Sales: Interest will be charged at 1.5% per month from expiry of credit term, based on date of invoice. All discrepancies
        must be submitted in writing within 7 dats upon receipt of our tax invoice. Not withstanding any discrepancy, interest will commerce from expiry of credit term until full settlement of outstanding debt.</small></td>
    </tr>
    <tr>
        <td colspan="2">
            <table>
                <tr>
                    <td>Shipper :</td>
                    <td colspan="2"><?php echo $model['customer'];?></td>
                </tr>
                <tr>
                    <td>Consignee :</td>
                    <td colspan="2"><?php echo $model['consignee'];?></td>
                </tr>
                <tr>
                    <td>Our Ref no. :</td>
                    <td colspan="2"><?php echo $model['ref'];?></td>
                </tr>
                <tr>
                    <td colspan="2">Courier Handling Charges</td>
                    <td align="right"><?php echo $model['amt'];?></td>
                </tr>
                <tr>
                    <td>SD :</td>
                    <td><?php echo $model['amtword'];?></td>
                    <td><?php echo $model['amt'];?></td>
                </tr>
                <tr>
                    <td>Encl :</td>
                    <td>Copy of document</td>
                    <td>-</td>
                </tr>
                <tr>
                    <td>Remarks :</td>
                    <td>(T) Taxable, (0) Zero Rated</td>
                    <td><?php echo $model['amt'];?></td>
                </tr>
            </table>
        </td>
    </tr>
</table>